package com.qfmy.model.entity.novel;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity.novel
 * @date 2025/11/11
 * @description 小说表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Novel  {

    @Schema(description = "小说ID")
    private Integer novelId;

    @Schema(description = "小说名称")
    private String novelName;

    @Schema(description = "小说封面URL")
    private String image;

    @Schema(description = "作者名称（关联作者表）")
    private String authorName;

    @Schema(description = "分类ID（关联分类表）")
    private Integer categoryId;

    @Schema(description = "小说评分（0.0-99.9）")
    private BigDecimal score;

    @Schema(description = "评分人数")
    private Long scoreCount;

    @Schema(description = "小说章节数量")
    private Integer chapterNum;

    @Schema(description = "小说字数")
    private Integer count;

    @Schema(description = "小说阅读量")
    private Integer viewCount;

    @Schema(description = "小说状态：0-连载，1-完结，2-断更")
    private Integer status;

    @Schema(description = "审核状态：0-待审核，1-通过，2-驳回")
    private Integer auditStatus;

    @Schema(description = "小说描述")
    private String des;

    @Schema(description = "搜索次数")
    private Integer searchCount;

    @Schema(description = "是否免费：0-免费，1-付费")
    private Boolean free;

    @Schema(description = "标签（逗号分隔，如“悬疑,甜宠”）")
    private String tags;

    @Schema(description = "版权方")
    private String copyright;

    @Schema(description = "是否原创：0-非原创，1-原创")
    private Boolean isOriginal;

    @Schema(description = "排序权重（越大越靠前）")
    private Integer sortOrder;

    @Schema(description = "最新章节ID")
    private Integer lastChapterId;

    @Schema(description = "最新章节更新时间")
    private Date lastUpdateTime;

    @Schema(description = "分类名称")
    private String categoryName;

    @Schema(description = "小说评论数")
    private Integer commentCount;

    @Schema(description = "书籍的类型")
    private Integer novel_type;

    @Schema(description = "小说海报")
    private String poster;

    @Schema(description = "逻辑删除")
    private Boolean isDeleted;
}